package main

import (
	"github.com/prometheus/client_golang/prometheus/promhttp"
	"net/http"
	"webserver/handler"
	"webserver/metrics"
)

func main() {
	metrics.Register()
	http.HandleFunc("/", handler.DefaultHandler)
	http.HandleFunc("/healthz", handler.HealthHandler)
	http.Handle("/metrics", promhttp.Handler())
	http.ListenAndServe(":8080", nil)
}
